package com.xuanwu.shop.entity;

/**
 * 商品类型实体类
 * @author Administrator
 *
 */
public class Category {
	private int id;
	private String name; // 类型的名字
	private String description; // 类型描述
	private Category pcategory; // 父类型对象

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Category getPcategory() {
		return pcategory;
	}

	public void setPcategory(Category pcategory) {
		this.pcategory = pcategory;
	}

	@Override
	public String toString() {
		return "Category [id=" + id + ", name=" + name + ", description=" + description + ", pcategory=" + pcategory
				+ "]";
	}

}
